package com.hitown.dao.user;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.hitown.model.user.Group;
import com.hitown.model.user.UserGroup;
import com.hitown.model.user.UserInfo;

@Mapper
public interface UserDao {
	//查询用户列表
	public List<UserInfo> getUserList(Map<String, Object> map);
	public int getCountUser(Map<String, Object> map);
	
	//新增用户
	void addUser(UserInfo userInfo);
	
	//修改用户
	void updateUser(UserInfo userInfo);
	
	//查询组列表
	public List<Group> getListGroup(Map<String, Object> map);
	public int getCountGroup(Map<String, Object> map);
	
	//新增组
	void addGroup(Group group);
	
	//修改组
	void updateGroup(Map<String, Object> map);
	
	//查询组成员列表
	public List<Map<String, Object>> getListUserGroup(Map<String, Object> map);
	public int getCountUserGroup(Map<String, Object> map);
	
	//新增组成员
	void addUserGroup(Map<String, Object> map);
	
	//注销组成员
	void updateUserGroup(Map<String, Object> map);
}
